package com.own.dao.impl;

import com.own.dao.ILoginDAO;
import com.own.utils.JDBCTemplate;

/**
 *  @author Zzj
 * @date 2012-7-14 上午12:12:30
 * @history V1.0
 */
public class LoginDAOImpl implements ILoginDAO {
	
	private JDBCTemplate jdbcTemplate;
	
	public void setJdbcTemplate(JDBCTemplate jdbcTemplate) {
		this.jdbcTemplate = jdbcTemplate;
	}

	public boolean isLogin(String userName, String password) {
		
		System.out.println("..............."+jdbcTemplate.getClass().getName());
		if ("hello".equals(userName) && "world".equals(password))
			return true;
		else
			return false;
	}

}
